Ext.onReady(function(){
	var f = new Ext.form.FormPanel({
	    formId: 'fi',
	    title: 'Upload File',
	    frame: true,
		bodyStyle:'padding:5px 5px 0',
	    width: 300,
	    defaultType: 'textfield',
	    items: [{
	        fieldLabel: 'User',
	        name: 'username'
	    }, {
	        fieldLabel: 'Password',
	        name: 'password',
	        inputType: 'password'
	    }],
	    buttons: [{
	    	text: 'Submit',
	    	handler: function(){
	    		Ext.Ajax.request({
				    url: '/a',
				    form: 'fi'
				});
	    	}
		}, {
			text: 'Cancel'
		}]
	});
	f.render(Ext.getBody());
    
});